package com.psp.bu.controller.res.enumModel;

public enum ServiceCategoryEnum {
        AGILITY("敏捷制造 快制中心", 1), INNOVATION("产品创意 工业设计", 2), TECH("技术研发 方案设计", 3),
        STANDARD("检测检验 标准认证", 4), BATCH("产品中试 中小批量", 5), SCIENCE("协同创新 科技服务", 5)
        , MARKET("市场推广 品牌提升", 5);  
        private String name;  
        private int index;  
        private ServiceCategoryEnum(String name, int index) {  
            this.name = name;  
            this.index = index;  
        }  
        public static String getName(int index) {  
            for (ServiceCategoryEnum c : ServiceCategoryEnum.values()) {  
                if (c.getIndex() == index) {  
                    return c.name;  
                }  
            }  
            return null;  
        }  
        // get set 方法  
        public String getName() {  
            return name;  
        }  
        public void setName(String name) {  
            this.name = name;  
        }  
        public int getIndex() {  
            return index;  
        }  
        public void setIndex(int index) {  
            this.index = index;  
        }  
}
